package source;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import javax.microedition.io.ConnectionNotFoundException;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.*;
import source.util.Utilities;

/**
 * @author Ferry
 */
public class mainMidlet extends MIDlet {

    Display display;

    public mainMidlet(){
        display = Display.getDisplay(this);
    }

    public void startApp() {
        mainCanvas mc = new mainCanvas(this);
        display.setCurrent(mc);
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
        
        try {            
            platformRequest((String)Utilities.getInstance().getUrls().elementAt(0));
        } catch (ConnectionNotFoundException ex) {
            ex.printStackTrace();
        }
         
         
    }
}
